<?php
    $arrUserQuestion = $this->userquestion;
    $arrQuestion = $this->question;
//    echo '<pre>';
//    print_r($arrUserQuestion);
//    die;
?>
<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
    <tr>
        <th rowspan="3" class="sized"><img src="/backend-store/images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
        <th class="topleft"></th>
        <td id="tbl-border-top">&nbsp;</td>
        <th class="topright"></th>
        <th rowspan="3" class="sized"><img src="/backend-store/images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
    </tr>
    <tr>
        <td id="tbl-border-left"></td>
        <td>
            <!--  start content-table-inner ...................................................................... START -->
            <div id="content-table-inner">

                <!--  start table-content  -->
                <div id="table-content">

                    <!--  start product-table ..................................................................................... -->
                    <form id="mainform" action="">
                        <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
                            <tr>
                                <th class="table-header-check"><a id="toggle-all" ></a> </th>
                                <th class="table-header-repeat line-left"><a href="">MaCK</a></th>
                                <th class="table-header-repeat line-left"><a href="">Số người hỏi</a></th>
                                <th class="table-header-options line-left"><a href="">Action</a></th>
                            </tr>
                            <?php
                                if(!empty($arrUserQuestion)) :
                                    foreach($arrUserQuestion as $key => $val) :
                            ?>
                            <tr>
                                <td><input  type="checkbox"/></td>
                                <td><?=$arrQuestion[$val['mackid']]?></td>
                                <td><?=$val['amount']?></td>
                                <td class="options-width">
                                    <a href="/backend/question/replyquestion?mackid=<?=$val['mackid']?>&mackname=<?=$arrQuestion[$val['mackid']]?>" title="Reply" >Reply</a>
                                </td>
                            </tr>
                            <?php
                                    endforeach;
                                endif;
                            ?>
                        </table>
                        <!--  end product-table................................... -->
                    </form>
                </div>
                <!--  end content-table  -->

                <div class="clear"></div>

            </div>
            <!--  end content-table-inner ............................................END  -->
        </td>
        <td id="tbl-border-right"></td>
    </tr>
    <tr>
        <th class="sized bottomleft"></th>
        <td id="tbl-border-bottom">&nbsp;</td>
        <th class="sized bottomright"></th>
    </tr>
</table>